export default defineAppConfig({
    lazyCodeLoading: 'requiredComponents',
    pages: [


        'pages/home/home',
        'pages/post/index',
        'pages/mine/mine',
        'pages/message/message',
        'pages/message/chat',
        'pages/message/system-messages',
        'pages/reward/hall',
        'pages/reward/signHall',
        'pages/navigation/index', // 导航页
        'pages/navigation/index2', // 导航页

        'pages/post/checkin',
        'pages/post/course',
        'pages/post/my-publish',
        'pages/post/applicants',
        'pages/post/applicants-task',
        'pages/new-webs/code',
        'pages/new-webs/test1',
        'pages/new-webs/wechat-auth-test',
        // 'pages/navigation/index',
        'pages/webs/credit-level',
        'pages/webs/dispute',
        'pages/webs/order-detail',
        'pages/webs/certification',
        'pages/webs/personal-entry',
        'pages/webs/personal-center',
        'pages/webs/personal-profile',
        'pages/webs/member-recharge',
        'pages/webs/training',
        'pages/webs/check-in',
        'pages/webs/merchant-entry',
        'pages/webs/withdraw',
        'pages/webs/promotion',
        'pages/webs/credit-level',
        'pages/webs/bounty',
        'pages/webs/dispute',
        'pages/webs/register',
        'pages/webs/post-job',
        'pages/pinggu/index',
        'pages/webs/application-record',
        'pages/preview/index',
        'pages/index/index',
        'pages/pinggu/part2',
        'pages/pinggu/part1',
        'pages/webview/webview',
        'pages/webs/contact-us',
        'pages/webs/factory-recruitment',
        'pages/webs/user-registration-platform-account',
        'pages/webs/platform-task-publish',
        'pages/webs/special-recruitment',
        'pages/webs/post-reward-task-task-platform',
        'pages/webs/login',
        'pages/webs/merchant-entrance-platform',
        'pages/webs/task-details-reward-task-platform', // 悬赏任务详情
        // '/pages/webs/checkin-task-detail', // 签到任务详情
        'pages/webs/endless-learning-professional-online-learning-platform',
        'pages/webs/reward-hall',
        'pages/webs/order-acceptance-records',
        'pages/webs/order-acceptance-square',
        'pages/webs/promotion-reward-settlement-system-secondary-distribution',
        'pages/webs/promotion-statistics-center',
        'pages/webs/mobile-recruitment-platform',
        'pages/webs/my-page',
        'pages/webs/post-job-openings',
        'pages/webs/post-job-day',
        'pages/registration/my-application',
        'pages/webs/boss-application',
        'pages/webs/my-application-detail',
        'pages/webs/location-picker',
        'pages/webs/auth-callback',
        'pages/webs/debug-logs',
        'pages/message/webs',

        // 修改密码相关
        '/pages-detail/mine/safe/index',
        '/pages-detail/mine/safe/modify/loginPassword',
        '/pages-detail/mine/safe/modify/registerPassword',
        '/pages-detail/mine/safe/modify/registerPayPassword',
        '/pages-detail/mine/safe/modify/payPassword',

        // 修改昵称头像
        '/pages-detail/mine/myinfo',

        // 发布招聘信息相关
        'pages/webs/post-job-factory', // 工厂招聘

        // 详情页面相关（发布平台发布的信息详情）
        '/pages-detail/post/recruit/factory-recruitment-detail', // 工厂招聘信息详情
        '/pages-detail/post/recruit/order-acceptance-detail', // 日结招聘信息详情
        '/pages-detail/post/reward/checkin-task-detail', // 签到任务信息详情



        '/pages/publish/editTheDay',//发布日结编辑
        '/pages/publish/factoryRecruitmentEditor',//发布工厂招聘编辑
        '/pages/publish/speRecruitmentEditor',//发布特殊招聘编辑

        // '/pages-detail/mine/password/modify/payment',
        // '/pages-detail/mine/password/modify/code',
        'pages/course/index',
        'pages/course/recorder',
        'pages/course/detail',
        'pages/course/list',
        'pages/mine/profile',
        'pages/mine/income-detail',
        'pages/mine/other',

        'pages/edit/bounty',
        'pages/edit/checkin',
        'pages/post/sign-list',
        'pages/post/sign-detail',

        'pages/course/training',
        'pages/course/video-player',

        'pages/post/components/RewardTaskItemExample',
        'pages/post/components/RewardTaskItemCompleteExample',
        'pages-detail/post/recruit/evaluate',

        'pages/registration/auth-person',

        // 项目展示相关
        'pages/project-show/list',
        'pages/project-show/edit',
        'pages/project-show/preview'
    ],
    window: {
        backgroundColor: '#fff',
        backgroundTextStyle: 'light',
        navigationBarBackgroundColor: '#fff',
        navigationBarTitleText: 'Taro Template',
        navigationBarTextStyle: 'black'
    },
    tabBar: {
        custom: true,
        color: '#999999',
        selectedColor: '#2196F3',
        backgroundColor: '#ffffff',
        borderStyle: 'black',
        list: [
            {
                pagePath: 'pages/home/home',
                text: '首页',
                iconPath: 'assets/imgs/home.png',
                selectedIconPath: 'assets/imgs/home-a.png'
            },
            {
                pagePath: 'pages/reward/hall',
                text: '悬赏',
                iconPath: 'assets/imgs/reward.png',
                selectedIconPath: 'assets/imgs/reward-a.png'
            },
            {
                pagePath: 'pages/post/index',
                text: '发布',
                iconPath: 'assets/imgs/post.png',
                selectedIconPath: 'assets/imgs/post-a.png'
            },
            {
                pagePath: 'pages/message/message',
                text: '消息',
                iconPath: 'assets/imgs/message.png',
                selectedIconPath: 'assets/imgs/message-a.png'
            },
            {
                pagePath: 'pages/mine/mine',
                text: '我的',
                iconPath: 'assets/imgs/mine.png',
                selectedIconPath: 'assets/imgs/mine-a.png'
            }
        ]
    },
    "plugins": {
        "materialPlugin": {
            "version": "1.0.5",
            "provider": "wx4d2deeab3aed6e5a"
        }
    },
    // 定位权限配置
    permission: {
        "scope.userLocation": {
            desc: "你的位置信息将用于签到任务功能" // 务必填写具体用途（如“附近门店展示”），用户授权时会显示
        }
    },

    // 基础库 2.21.2 及以上必须声明，否则调用 getLocation 会报错
    requiredPrivateInfos: ["getLocation"]

});
